<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
	include("../include/config.php");  ?>
<form actiont="" method="post">
<table>
<tr>
<td>Tieu de</td>	
</tr>

<select name="category_id">
	<option value="0">---</option>
	<?php 
	$sql="SELECT * FORM category ORDER BY stt";
	$rs=mysql_query($sql);
	if($rs) {
		while(rw=mysql_fetch_array($rs)) {
		?>
		<option value="<?php $rw"['id']"?>" > <?php echo $rw['title']?></option>
		<?php
	}
}
	?>
	<select>
	
	<?php  
	$SQL="INSERT INTO category(title,stt,status) VALUES ('" .addslashes($title)."'); 
	// chong loi sql jelector 
	?>

	
</body>
</html>
